﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Core.DataAccess.Model.Migrations.Project
{
    public partial class addaliwchatapy3 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "ProjectAliPay");

            migrationBuilder.DropTable(
                name: "ProjectWChatPay");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "ProjectAliPay",
                columns: table => new
                {
                    Id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    AddTime = table.Column<DateTime>(nullable: true),
                    ApiUrl = table.Column<string>(nullable: true),
                    AppCode = table.Column<string>(nullable: true),
                    Privtekey = table.Column<string>(nullable: true),
                    ProjectKey = table.Column<int>(nullable: false),
                    Publickey = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProjectAliPay", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "ProjectWChatPay",
                columns: table => new
                {
                    Id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    AddTime = table.Column<DateTime>(nullable: true),
                    ApiKey = table.Column<string>(nullable: true),
                    ApiUrl = table.Column<string>(nullable: true),
                    AppCode = table.Column<string>(nullable: true),
                    MchId = table.Column<string>(nullable: true),
                    NotifyUrl = table.Column<string>(nullable: true),
                    ProjectKey = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProjectWChatPay", x => x.Id);
                });
        }
    }
}
